<?php

namespace App\Controllers;


/**
 * 默认控制器
 */
class DefaultController extends BaseController
{

    protected function init()
    {

    }

    public function indexAction()
    {
        return ['index', 200];
    }

    public function getAction()
    {
        return $this->display('default/get.html', [
            'title' => '测试框架',
        ]);
    }

    public function postAction()
    {
        return var_export($this->request->post, true);
    }
}
